Skip to content

Deprecate mysqli_stmt_init - #23209

Open
kamil-tekiela wants to merge 2 commits into
php:masterfrom
kamil-tekiela:Deprecate-mysqli_stmt_init
Open

Deprecate mysqli_stmt_init#23209
kamil-tekiela wants to merge 2 commits into
php:masterfrom
kamil-tekiela:Deprecate-mysqli_stmt_init

Conversation

@kamil-tekiela

Copy link
Copy Markdown
Member

This was mostly replacing mysqli_stmt_init + mysqli_stmt_prepare with mysqli_prepare.

The unrelated changes are either fixing typos or removing dead code.

@@ -31,12 +30,9 @@ require_once 'skipifconnectfailure.inc';
echo $exception->getMessage() . "\n";

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

echo $exception::class, ': ', $exception->getMessage(), "\n";

If you want while you are on it.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, let's do that separately. This PR already has too many unrelated changes.

@DanielEScherzer DanielEScherzer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please rebase this and regenerate the arginfo, it will use the new ZEND_STR_8_DOT_6 known string, see #23222

@kamil-tekiela

Copy link
Copy Markdown
Member Author

please rebase this and regenerate the arginfo, it will use the new ZEND_STR_8_DOT_6 known string, see #23222

Do I have to modify the stub file again?

@DanielEScherzer

Copy link
Copy Markdown
Member

please rebase this and regenerate the arginfo, it will use the new ZEND_STR_8_DOT_6 known string, see #23222

Do I have to modify the stub file again?

no, just run the gen_stub script

@kamil-tekiela
kamil-tekiela force-pushed the Deprecate-mysqli_stmt_init branch from f6ecbac to 9f7c6c8 Compare August 11, 2026 22:45
@kamil-tekiela

Copy link
Copy Markdown
Member Author

Adding whitespace, regenarating and removing whitespace worked.

@DanielEScherzer

Copy link
Copy Markdown
Member

Adding whitespace, regenarating and removing whitespace worked.

Ah, I guess that if the stub file hasn't changed it wouldn't run again by default, I just always use build/gen_stub.php -f --generate-optimizer-info --verify so I forgot about that

@NickSdot

NickSdot commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

CI failure looks like it's something running tests in parallel exposed. I am on it.

Edit: opened #23225

Comment thread NEWS Outdated
Co-authored-by: Máté Kocsis <kocsismate90@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants